package com.ruoyi.nginx.guard.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.io.Serializable;
import java.util.List;

@Configuration
@ConfigurationProperties(prefix = "nginx")
public class NginxParam implements Serializable {

    private String sbin;

    private String log;

    private String blackListIp;

    private String blackSet;

    private String pingPort;

    private List<String> matcherList;

    public String getSbin() {
        return sbin;
    }

    public void setSbin(String sbin) {
        this.sbin = sbin;
    }

    public String getLog() {
        return log;
    }

    public void setLog(String log) {
        this.log = log;
    }

    public String getBlackListIp() {
        return blackListIp;
    }

    public void setBlackListIp(String blackListIp) {
        this.blackListIp = blackListIp;
    }

    public String getPingPort() {
        return pingPort;
    }

    public void setPingPort(String pingPort) {
        this.pingPort = pingPort;
    }

    public List<String> getMatcherList() {
        return matcherList;
    }

    public void setMatcherList(List<String> matcherList) {
        this.matcherList = matcherList;
    }

    public String getBlackSet() {
        return blackSet;
    }

    public void setBlackSet(String blackSet) {
        this.blackSet = blackSet;
    }

    @Override
    public String toString() {
        return "NginxParam{" +
                "sbin='" + sbin + '\'' +
                ", log='" + log + '\'' +
                ", blackListIp='" + blackListIp + '\'' +
                ", pingPort='" + pingPort + '\'' +
                ", matcherList=" + matcherList +
                '}';
    }
}
